=begin
  author : Simon
  This is a simple script to generate the shell script
=end

def generateList(y, prefix, postfix)
  y.to_i.times { |x| 
    print prefix, "%03d" % x, postfix, " "
  }
end

if ARGV[0] == "help"
  puts "Usage of this script: "
  puts "  ruby tiny.rb NUMOFITERATIONS PREFIX POSTFIX"
  puts "Relevant example:"
  puts "  ruby tiny.rb 12 dat/reut2- .sgm"
end


if ARGV.count > 0 and ARGV.count < 4
  
  generateList(ARGV[0], ARGV[1], ARGV[2])

end

